﻿using System;
using System.Collections.Generic;
using System.Text;
using XiaoGang.Soft.XGWMS.COM;

namespace XiaoGang.Soft.XGWMS.BLL
{
    public class BLL_M012_STORAGESCAN
    {
        XGWMS.DAL_SQL.DAL_M007_GOODS dal_M007_GOODS = new XiaoGang.Soft.XGWMS.DAL_SQL.DAL_M007_GOODS();
        XGWMS.DAL_SQL.DAL_M012_STORAGESCAN dal_M012_STORAGESCAN = new XiaoGang.Soft.XGWMS.DAL_SQL.DAL_M012_STORAGESCAN();

        /// <summary>	
        /// <p><b>方法名称</b>InitCombox</p>	
        /// <p><b>概要説明  :</b>仓库编号的初始化</p>	
        /// <p><b>作成者    :</b>万岗</p>	
        /// <p><b>作成日    :</b>2008/09/08</p>	
        /// <p><b>修改历史  :</b></p>	
        /// </summary>	       
        /// <returns type = "ReturnValue">仓库编号信息表</returns>
        public ReturnValue InitCombox()
        {
            return dal_M007_GOODS.Init_Combox();
        }

        /// <summary>
        /// <p><b>方法名称</b>SearchProcess</p>	
        /// <p><b>概要説明  :</b>库存一览的检索</p>	
        /// <p><b>作成者    :</b>万岗</p>	
        /// <p><b>作成日    :</b>2008/09/08</p>	
        /// <p><b>修改历史  :</b></p>	
        /// </summary>	 
        /// <param name="model">检索条件</param>
        /// <returns type = "ReturnValue">检索结果表</returns>
        public ReturnValue SearchProcess(MODEL.MOD_M012_STORAGESCAN model)
        {
            return dal_M012_STORAGESCAN.SearchProcess(model);
        }

        /// <summary>
        /// 取得销售分析数据
        /// </summary>
        /// <param name="BusinessTimeStart">业务开始时间</param>
        /// <param name="BusinessTimeEnd">业务结束时间</param>
        /// <param name="OrderByType">分析类型 1:销售额 2：销售量</param>
        /// <param name="OrderByDirection">排序类型 1:由大到小 2:由小到大</param>
        /// <returns></returns>
        public ReturnValue GetAnalysis(string BusinessTimeStart, string BusinessTimeEnd, int OrderByType, int OrderByDirection)
        {
            return dal_M012_STORAGESCAN.GetAnalysis(BusinessTimeStart, BusinessTimeEnd, OrderByType, OrderByDirection);
        }
    }
}
